package entity;

import java.io.File;
import java.util.List;

public class ExcelEntity {
    private String fileName;
    private String fullName;
    private List<SheetEntity> sheets;

    public ExcelEntity() {
    }

    public ExcelEntity(String fullName) {
        this.fullName = fullName;
        this.fileName = fullName.substring(fullName.lastIndexOf(File.separator) + 1);
    }

    public ExcelEntity(String fileName, String fullName, List<SheetEntity> sheets) {
        this.fileName = fileName;
        this.fullName = fullName;
        this.sheets = sheets;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public List<SheetEntity> getSheets() {
        return sheets;
    }

    public void setSheets(List<SheetEntity> sheets) {
        this.sheets = sheets;
    }

    @Override
    public String toString() {
        return "entity.ExcelEntity{" +
                "fileName='" + fileName + '\'' +
                ", fullName='" + fullName + '\'' +
                ", sheets=" + sheets +
                '}';
    }
}
